package com.imooc.bigdata.hos.server.filemgr.service;

import java.io.IOException;
import java.io.InputStream;

public interface IHdfsService {

  /**
   * 上传文件
   * @throws IOException
   */
  public void saveFile(String dir, String name,
                       InputStream input, long length, short replication) throws IOException;

  public void deleteFile(String dir, String name) throws IOException;

  public InputStream openFile(String dir, String name) throws IOException;

  public void mikDir(String dir) throws IOException;

  public void deleteDir(String dir) throws IOException;

}
